package com.mdd.common.enums;

public enum OrderLogEnum {

    TYPE_SYSTEM(1, "系统"),

    TYPE_SELLER(2, "买家"),

    TYPE_BUYER(3, "卖家"),

    CHANNEL_SYSTEM_CANCEL_ORDER(301, "系统取消订单"),

    CHANNEL_PLATFORM_ORDER_REMARKS(201, "平台备注"),

    CHANNEL_PLATFORM_CANCEL_ORDER(201, "平台取消订单"),

    CHANNEL_PLATFORM_REFUND_ORDER(201, "平台退款"),

    CHANNEL_USER_ADD_ORDER(101, "用户提交订单"),

    CHANNEL_USER_PAID_ORDER(102, "支付订单"),

    CHANNEL_USER_CANCEL_ORDER(103, "用户取消订单");



    private final int code;
    private final String msg;

    OrderLogEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取状态码
     *
     * @author fzr
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author fzr
     * @return String
     */
    public String getMsg() {
        return this.msg;
    }

}
